/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CostInfoPanel.java
 *
 * Created on Jan 18, 2010, 3:33:28 PM
 */

package org.acmwustl.bubble.gui;

import org.acmwustl.bubble.logic.Item;

/**
 *
 * @author officer
 */
public class CostInfoPanel extends javax.swing.JPanel {

    /** Creates new form CostInfoPanel */
    public CostInfoPanel(Item i) {
        initComponents();

        itemNameLabel.setText(i.getName());
        itemPriceLabel.setText(i.getPriceAsString());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        itemNameLabel = new javax.swing.JLabel();
        itemPriceLabel = new javax.swing.JLabel();

        itemNameLabel.setFont(new java.awt.Font("Dialog", 0, 24)); // NOI18N
        itemNameLabel.setText("ITEM NAME:");

        itemPriceLabel.setFont(new java.awt.Font("Dialog", 0, 24)); // NOI18N
        itemPriceLabel.setText("$11.11");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(itemNameLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(itemPriceLabel)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(itemNameLabel)
                    .addComponent(itemPriceLabel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel itemNameLabel;
    private javax.swing.JLabel itemPriceLabel;
    // End of variables declaration//GEN-END:variables

}
